<%= turbo_stream.replace :page_sidebar do %>
  <%= render 'spree/admin/page_builder/sidebar_sections' %>
<% end %>

<%= turbo_stream.replace 'page_sidebar_toolbar' do %>
  <%= render 'spree/admin/page_builder/sidebar_sections_toolbar' %>
<% end %>

<%= turbo_stream.replace :iframe_preview_scripts do %>%
  <%= turbo_frame_tag :iframe_preview_scripts do %>
    <script>
      document.getElementById('page-builder-preview').contentDocument.body.querySelector('turbo-frame[id="section-<%= @page_section.id %>"]').remove()
      document.getElementById('delete-callback').click()
    </script>
  <% end %>
<% end %>
